<template>
  <div v-if="msg2">
    <el-dialog title="收货地址" :visible.sync="msg2">
      <el-form :model="typeList">
        <el-form-item label="游戏标题" :label-width="formLabelWidth">
          <el-input v-model="typeList.title" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="游戏描述" :label-width="formLabelWidth">
          <el-input v-model="typeList.description" autocomplete="off"></el-input>
        </el-form-item>
        <el-form-item label="游戏类型" :label-width="formLabelWidth">
          <el-select v-model="typeList.category_name" placeholder="请选择游戏类型">
            <el-option label="LOL" value="LOL"></el-option>
            <el-option label="STEAM" value="STEAM"></el-option>
            <el-option label="地下城与勇士" value="地下城与勇士"></el-option>
            <el-option label="绝地求生" value="绝地求生"></el-option>
            <el-option label="王者荣耀" value="王者荣耀"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="发布类型" :label-width="formLabelWidth">
          <el-select v-model="typeList.type_id" placeholder="请选择发布类型">
            <el-option label="20" value="20">资讯</el-option>
            <el-option label="26" value="26">教学</el-option>
            <el-option label="21" value="21">攻略</el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button @click="msg2 = false">取 消</el-button>
        <el-button type="primary" @click="queding()">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: ["msg2", "typeList"],
  created() {
    console.log(this.msg2);
  },
  mounted() {
    this.typeList = this.typeList;
  },
  data() {
    return {
      dialogTableVisible: false,
      formLabelWidth: "120px",
    };
  },
  methods: {
    queding(){
      this.msg2=false
      console.log(this.typeList,"----------");
    }
  },
};
</script>

<style></style>
